package com.cvit.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.cvit.model.Msg;
import com.cvit.model.vDate;
import com.cvit.service.vDateService;

@Controller
public class vDateController {

	@Autowired
	vDateService vdateService;
	
	/**
	 * 查询当天所有
	 * */
	@RequestMapping("/getvDateAll")
	@ResponseBody
	public Msg getvDateAll(){
		List<vDate> vdate = vdateService.getvDateAll();
		return Msg.success().add("vDate", vdate);
}
	
}
